Skip to content

new method enableMasterClock(fsMultiplier)#641

Open
KillzoneKid wants to merge 2 commits intoarduino:masterfrom
KillzoneKid:master
Open

new method enableMasterClock(fsMultiplier)#641
KillzoneKid wants to merge 2 commits intoarduino:masterfrom
KillzoneKid:master

Conversation

@KillzoneKid
Copy link

@KillzoneKid KillzoneKid commented Jul 28, 2021

Outputs MCK on I2S_MCK[0] pin to drive slave peripherals such as PCM1808 ADC for example. Default fs multiplier is 256 which produces 12MHz clock with 48KHz sampling rate, and divides clocks for other channels acordingly. There is also optional fs multiplier argument. The method should be called before 'begin', for example

I2S.enableMasterClock(); if (!AudioInI2S.begin(48000, 32)) { ...

Simplified MCK out with optional MCK frequency param, default 256fs
@CLAassistant
Copy link

CLAassistant commented Jul 28, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@KillzoneKid
Copy link
Author

Seems like AceTime didnt compile,, which is not related to changes in any way. Found this post too https://www.gitmemory.com/issue/arduino/ArduinoCore-samd/606/808888337 seems like it doesnt work well for samd core.

Unintentional change of comment, fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants